package chapter3.No3_2_方法join的使用.demo5;

/**
 * Created by Administrator on 2016/11/20.
 */
public class ThreadC extends Thread {
    ThreadB threadB;

    public ThreadC(ThreadB threadB) {
        this.threadB = threadB;
    }

    @Override
    public void run() {
        threadB.methodA();
    }
}
